
#include <cassert>

#include "Core\Bindable.h"

#include <d3d11.h>

#pragma comment(lib, "d3d11.lib")


ID3D11Device* Bindable::GetDevice() CONST
{
	assert(m_device);

	return m_device;
}


VOID Bindable::SetDevice(ID3D11Device* device)
{
	assert(!IsBinded());

	m_device = device;
}


ID3D11DeviceContext* Bindable::GetContext() CONST
{
	assert(m_context);

	return m_context;
}


VOID Bindable::SetContext(ID3D11DeviceContext* context) 
{
	assert(!IsBinded());

	m_context = context;
}


Bindable::Bindable()
	: m_device(NULL),
	  m_context(NULL)
{}


Bindable::~Bindable()
{
}